{% load  post_filters %}
<div class="card">
    <div class="card-header border-0">
        <h3 class="card-title">Post View Table</h3>
        <div class="card-tools">
            <button type="button" class="btn btn-tool" data-card-widget="collapse">
                <i class="fas fa-minus"></i>
            </button>
            <a href="{% url 'cms:monitor_postview_view' %}" class="btn btn-tool btn-sm">
                <i class="fas fa-bars"></i>
            </a>
        </div>
    </div>
    <div class="card-body table-responsive p-0">
        <table class="table table-striped table-valign-middle">
            <thead>
            <tr>
                <th>Rank</th>
                <th width="40%">Title</th>
                <th>Total</th>
                <th>Increase</th>
                <th>PostTime</th>
            </tr>
            </thead>
            <tbody>
            {% if post_view_table_list %}
                {% for post_view in post_view_table_list %}
                   <tr>
                        <td>{{ forloop.counter }}</td>
                        <td><a href="{% url 'post:detail' time_id=post_view.time_id%}" class="text-muted">{{ post_view.title }}</a></td>
                        <td>{{ post_view.read_num }}</td>
                        <td>
                            {{ post_view.inscrease }}
                        </td>
                        <td>
                            {{ post_view.publish_time | dashboard_time }}
                        </td>
                    </tr>
                {% endfor %}
            {% endif %}
            </tbody>
        </table>
    </div>
</div>